package com.dubbo.common.exception;

import com.dubbo.common.dtos.AppHttpCodeEnum;
import lombok.Getter;

@Getter
public class CarServiceException extends RuntimeException{

    private Integer status;

    public CarServiceException(Integer status,String message){
        super(message);
        this.status = status;
    }

    public CarServiceException(AppHttpCodeEnum codeEnumm){
        super(codeEnumm.getErrorMessage());
        this.status = codeEnumm.getCode();
    }
}
